<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model app\models\SamplePatient */

$this->title = '查看入库情况';

?>
<div class="sample-patient-view">

    <p>
        <?= Html::a('修改', ['update', 'id' => $model->pk_id], ['class' => 'btn btn-primary']) ?>
        <?= Html::a('返回', '/sample/view-from', ['class' => 'btn btn-success']) ?>

        <?= Html::a('删除', ['delete', 'id' => $model->pk_id], [
            'class' => 'btn btn-danger btn-right',
            'data' => [
                'confirm' => 'Are you sure you want to delete this item?',
                'method' => 'post',
            ],
        ]) ?>
    </p>

    <table class="table table-striped table-bordered detail-view">
        
        <tr class="title">
            <td colspan="6"><h4>一、样本基本信息</h4></td>
        </tr>
        <tr>
            <th>总管数</th>
            <td><?= $model->tube_total ?></td>
            <th>取样人</th>
            <td><?= $model->tube_taker ?></td>
            <th>取样时间</th>
            <td><?= $model->tube_time ?></td>
        </tr>
        <tr>
            <th>备注</th>
            <td colspan="5"><?= $model->tube_memo.$model->deliver_id ?></td>
        </tr>
        <?php if ($model->deliver_id != 0) : ?>
        <tr>
            <th>送样管数</th>
            <td><?= $model->deliver[0]->tube_deliver ?></td>
            <th>送样公司</th>
            <td><?= $model->deliver[0]->deliver_comp ?></td>
            <th>送样时间</th>
            <td><?= $model->deliver[0]->deliver_time ?></td>
        </tr>
        <tr>
            <th>送样用途</th>
            <td><?= $model->deliver[0]->deliver_using ?></td>
            <th>备注</th>
            <td colspan="3"><?= $model->tube_memo ?></td>
        </tr>
        <?php endif; ?>
        <tr class="title">
            <td colspan="6"><h4>二、DNA提取信息</h4></td>
        </tr>
        <tr>
            <th>DNA提取管数</th>
            <td><?= $model->dna_total."管" ?></td>
            <th>DNA提取人</th>
            <td><?= $model->dna_taker ?></td>
            <th>DNA提取时间</th>
            <td><?= $model->dna_time ?></td>
        </tr>
        <tr class="title">
            <td colspan="6"><h4>三、RNA提取信息</h4></td>
        </tr>
        <tr>
            <th>RNA提取管数</th>
            <td><?= $model->rna_total."管" ?></td>
            <th>RNA提取人</th>
            <td><?= $model->rna_taker ?></td>
            <th>RNA提取时间</th>
            <td><?= $model->rna_time ?></td>
        </tr>
    </table>

</div>
